#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Taotie Ren

age = 21
counter = 0

for i in range(10):

    if counter < 3:
        print("\d",counter)
        guess_num = int(input("input your guess num :"))
        if guess_num  == age:
            print ("Congratulations! you got it.")
            break #跳出循环
        elif guess_num > age:
            print("Think smaller!")
        else:
            print("Think Big...")
    else:
        #print("too many attempts ... bye")
        #break
        continue_confirm = input("Do you want too:")
        if continue_confirm =='y':
            counter = 0
            continue
           # pass #i = 0
        else:
            break
    counter += 1 #counter = counter + 1
'''
for i in range(10):
    print(i)
'''
